﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="proManage.aspx.cs" ValidateRequest="false"
    Inherits="Manage_proManage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link rel="Stylesheet" type="text/css" href="css/admin.css" />

    <script type="text/javascript" src="js/jquery-1.7.1.js"></script>

    <script type="text/javascript" src="ueditor/editor_all.js"></script>

    <script type="text/javascript" src="ueditor/editor_all_min.js"></script>

    <script type="text/javascript" src="ueditor/editor_config.js"></script>

    <link rel="Stylesheet" type="text/css" href="ueditor/themes/default/ueditor.css" />
    <style type="text/css">
        .inputfoucs
        {
            font-size: 12px;
            padding: 3px;
            border: 1px solid #f7ca06;
            background: #fffbca;
            color: #cb6a24;
        }
        .inputblur
        {
            font-size: 12px;
            padding: 3px;
            background: #f8f9ff;
            border: 1px solid #c4c9fd;
            color: #6C63A3;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
            <tr height="28">
                <td background="images/title_bg1.jpg">
                    当前位置:
                    <asp:SiteMapPath ID="SiteMapPath1" runat="server" SiteMapProvider="ManageSiteMapProvider">
                    </asp:SiteMapPath>
                </td>
            </tr>
            <tr>
                <td bgcolor="#b1ceef" height="1">
                </td>
            </tr>
            <tr height="20">
                <td background="images/shadow_bg.jpg">
                </td>
            </tr>
        </table>
        
        <div style="margin-left:10px;margin-right:10px">
            <table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
                <tr height="5">
                    <td>
                    </td>
                </tr>
                <tr height="22">
                    <td style="padding-left: 20px; font-weight: bold; color: #ffffff" align="left" background="images/title_bg2.jpg">
                        专业信息
                    </td>
                </tr>
                <tr bgcolor="#ecf4fc" height="12">
                    <td>
                    </td>
                </tr>
                <tr height="5">
                    <td>
                    </td>
                </tr>
            </table>
            <div>
                <asp:GridView ID="grd_Professional" runat="server" AutoGenerateColumns="False" BackColor="White"
                    BorderColor="#CCCCCC" BorderWidth="1px" CellPadding="3" BorderStyle="Solid" OnSelectedIndexChanged="grd_Professional_SelectedIndexChanged">
                    <RowStyle ForeColor="#000066" />
                    <Columns>
                        <asp:BoundField DataField="proId" HeaderText="专业编号" HeaderStyle-Width="100px" />
                        <asp:BoundField DataField="proName" HeaderText="专业名称" HeaderStyle-Width="200px" />
                        <asp:BoundField DataField="proNum" HeaderText="计划招生人数" HeaderStyle-Width="100px" />
                        <asp:CommandField ShowSelectButton="True" />
                    </Columns>
                    <FooterStyle BackColor="White" ForeColor="#000066" />
                    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                    <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                </asp:GridView>
                <span style="float:left">
                    <asp:Button ID="btn_AddProfessional" Enabled="false" runat="server" 
                    Text="新增专业信息" onclick="btn_AddProfessional_Click" />
                </span>
            </div>
            
            <table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
                <tr height="20">
                    <td>
                    </td>
                </tr>
                <tr height="22">
                    <td style="padding-left: 20px; font-weight: bold; color: #ffffff" align="left" background="images/title_bg2.jpg">
                        <asp:Label ID="lb_AddOrUpdate" runat="server" Text="新增专业信息"></asp:Label>
                    </td>
                </tr>
                <tr bgcolor="#ecf4fc" height="12">
                    <td>
                    </td>
                </tr>
                <tr height="5">
                    <td>
                    </td>
                </tr>
            </table>
            
            <div id="detail">
                <table>
                    <tr>
                        <td>
                            专业编号
                        </td>
                        <td>
                            <asp:TextBox ID="txt_ProId" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="txt_ProId" SetFocusOnError="true" runat="server" ErrorMessage="请输入专业编号"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            专业名称
                        </td>
                        <td>
                            <asp:TextBox ID="txt_ProName" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="txt_ProName" SetFocusOnError="true" runat="server" ErrorMessage="请输入专业名称"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            专业计划人数
                        </td>
                        <td>
                            <asp:TextBox ID="txt_ProNum" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txt_ProNum" SetFocusOnError="true" ErrorMessage="请输入专业计划人数"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            专业描述
                        </td>
                        <td width="500px">
                            <!--编辑器-->
                            <div id="editorValuedate" runat="server" style="display: none;">
                                <asp:TextBox ID="txt_Content" runat="server"></asp:TextBox>
                            </div>
                            <div name="editorValue" runat="server" id="editorValue" style="width: 500px;">
                            </div>

                            <script type="text/javascript">
                                var val = document.getElementById("txt_Content").value;
                                var editor = new baidu.editor.ui.Editor({
                                    toolbars: [['fullscreen', 'undo', 'redo', 'source', 'cleardoc']],
                                    minFrameHeight: "200",
                                    autoHeightEnabled: false,
                                    initialContent: val
                                    
                                });
                                editor.render("editorValue");
                                editor.setContent($("#editorValuedata")[0].innerHTML);
                                document.getElementById('editorValuedata').innerHTML = "";
                                
                            </script>

                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" align="center">
                            <asp:Button ID="btn_Submit" runat="server" Text="提交" 
                                onclick="btn_Submit_Click" />
                        </td>
                    </tr>
                </table>
                
            </div>
        </div>
    </div>
    </form>
</body>
</html>
